package com.example.seataordersys.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;

@FeignClient("seata-account-sys") // 指向服务提供者应用
public interface AccountFeign {


    @GetMapping("/account/debit")
    String debit(@RequestParam("userId") Long userId,
                 @RequestParam("orderMoney") BigDecimal orderMoney);




}
